package com.example.zaq.model;

import lombok.Data;

import java.io.Serializable;

/**
 * 20210602  zaq  修改时间类型
 * asp_calendar
 * @author 
 */
@Data
public class AspCalendar implements Serializable {
    /**
     * 返回信息
     */
    private  String note;
    /**
     * 返回码，>0表示成功
     */
    private  Integer code;

    private Integer cId;

    /**
     * 日程名称
     */
    private String cName;

    /**
     * 1|全天；2|时间段；3|时刻
     */
    private Object cFlag;

    private Integer cDate;

    /**
     * 开始时间
     */
    private String cStart;

    /**
     * 结束时间
     */
    private String cEnd;

    /**
     * 1|一次；0|每年；-1|每月；-2|每周；-3|每天；正整数表示持续几年
     */
    private Integer cKeep;

    /**
     * 备注
     */
    private String cText;

    /**
     * 用户ID，外键
     */
    private Integer uId;

    /**
     * 删除标志，1表示已删除
     */
    private Boolean delete;

    private static final long serialVersionUID = 1L;

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public Object getcFlag() {
        return cFlag;
    }

    public void setcFlag(Object cFlag) {
        this.cFlag = cFlag;
    }

    public Integer getcDate() {
        return cDate;
    }

    public void setcDate(Integer cDate) {
        this.cDate = cDate;
    }

    public String getcStart() {
        return cStart;
    }

    public void setcStart(String cStart) {
        this.cStart = cStart;
    }

    public String getcEnd() {
        return cEnd;
    }

    public void setcEnd(String cEnd) {
        this.cEnd = cEnd;
    }

    public Integer getcKeep() {
        return cKeep;
    }

    public void setcKeep(Integer cKeep) {
        this.cKeep = cKeep;
    }

    public String getcText() {
        return cText;
    }

    public void setcText(String cText) {
        this.cText = cText;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Boolean getDelete() {
        return delete;
    }

    public void setDelete(Boolean delete) {
        this.delete = delete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AspCalendar other = (AspCalendar) that;
        return (this.getcId() == null ? other.getcId() == null : this.getcId().equals(other.getcId()))
            && (this.getcName() == null ? other.getcName() == null : this.getcName().equals(other.getcName()))
            && (this.getcFlag() == null ? other.getcFlag() == null : this.getcFlag().equals(other.getcFlag()))
            && (this.getcDate() == null ? other.getcDate() == null : this.getcDate().equals(other.getcDate()))
            && (this.getcStart() == null ? other.getcStart() == null : this.getcStart().equals(other.getcStart()))
            && (this.getcEnd() == null ? other.getcEnd() == null : this.getcEnd().equals(other.getcEnd()))
            && (this.getcKeep() == null ? other.getcKeep() == null : this.getcKeep().equals(other.getcKeep()))
            && (this.getcText() == null ? other.getcText() == null : this.getcText().equals(other.getcText()))
            && (this.getuId() == null ? other.getuId() == null : this.getuId().equals(other.getuId()))
            && (this.getDelete() == null ? other.getDelete() == null : this.getDelete().equals(other.getDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getcId() == null) ? 0 : getcId().hashCode());
        result = prime * result + ((getcName() == null) ? 0 : getcName().hashCode());
        result = prime * result + ((getcFlag() == null) ? 0 : getcFlag().hashCode());
        result = prime * result + ((getcDate() == null) ? 0 : getcDate().hashCode());
        result = prime * result + ((getcStart() == null) ? 0 : getcStart().hashCode());
        result = prime * result + ((getcEnd() == null) ? 0 : getcEnd().hashCode());
        result = prime * result + ((getcKeep() == null) ? 0 : getcKeep().hashCode());
        result = prime * result + ((getcText() == null) ? 0 : getcText().hashCode());
        result = prime * result + ((getuId() == null) ? 0 : getuId().hashCode());
        result = prime * result + ((getDelete() == null) ? 0 : getDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cId=").append(cId);
        sb.append(", cName=").append(cName);
        sb.append(", cFlag=").append(cFlag);
        sb.append(", cDate=").append(cDate);
        sb.append(", cStart=").append(cStart);
        sb.append(", cEnd=").append(cEnd);
        sb.append(", cKeep=").append(cKeep);
        sb.append(", cText=").append(cText);
        sb.append(", uId=").append(uId);
        sb.append(", delete=").append(delete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}